Translate = {

    qqq: 0,

    begin: function(id) {
        if ($('row' + Translate.qqq)) {
            $('row' + Translate.qqq).removeClassName('current');
            Translate.end(Translate.qqq);
        }
        $('row' + id).addClassName('current');
        Translate.qqq = id;
    },

    end: function(id) {
        if ($('ru_city' + id) && $('ru_city' + id).value.length > 0) {
            new Ajax.Request('/translate/store.php?id=' + id + '&value=' + $('ru_city' + id).value, {method: 'get'});
        }
    }
}